import { RouteRecordRaw } from "vue-router"
import topBar from '@/components/topBar/index.vue'
import sideBar from '@/components/sideBar/index.vue'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name:'INDEX',
        components:{
            content:()=> import('../pages/index/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'首页'
        }
    },{
        path:'/login',
        name:'LOGIN',
        component:()=> import('../pages/login-register/index.vue'),
        meta:{
            title:'登录注册'
        }
    },
    {
        path: '/activity',
        name:'ACTIVITY',
        components:{
            content:()=> import('../pages/activity-manage/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'评论管理'
        }
    },
    {
        path: '/dating',
        name:'DATING',
        components:{
            content:()=> import('../pages/dating-info/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'动态管理'
        }
    },
    {
        path: '/profile',
        name:'PROFILE',
        components:{
            content:()=> import('../pages/profile/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'个人中心'
        }
    },
    {
        path: '/usermanage',
        name:'USERMANAGE',
        components:{
            content:()=> import('../pages/user-manage/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'用户管理'
        }
    },
    {
        path: '/labelManage',
        name:'LABELMANAGE',
        components:{
            content:()=> import('../pages/label-manage/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'标签管理'
        }
    },
    {
        path: '/chatManage',
        name:'CHATMANAGE',
        components:{
            content:()=> import('../pages/chat-manage/index.vue'),
            topBar,
            sideBar
        },
        meta:{
            title:'聊天记录管理'
        }
    },

]

export default routes